import hyRequest from '@/utils'

// 获取轮播图数据
export const getBanners = () => {
  return hyRequest.get({
    url: '/banner'
  })
}

//获取热门推荐
export const getHotRecommend = (limit = 30) => {
  return hyRequest.get({
    url: '/personalized',
    params: {
      limit
    }
  })
}

//获取新碟上架
export const getNewAlbum = () => {
  return hyRequest.get({
    url: '/album/newest'
  })
}

//获取榜单
export const getPlayListDetail = (id: number) => {
  return hyRequest.get({
    url: '/playList/detail',
    params: {
      id
    }
  })
}
// 入驻歌手
export const getArtistList = (limit = 5) => {
  return hyRequest.get({
    url: '/artist/list',
    params: {
      limit
    }
  })
}
